package com.wodsy.phoenix.dataobject.goodsc.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * TbGoodsSkuAttr entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_goods_sku_attr", catalog = "goodsc")
public class GoodsSkuAttr implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 1L;
	
	private Integer id;
//	private Integer skuId;					//商品sku_id
	private String attributeName;			//商品属性名
	private String attributeValue;			//商品属性值
	private Date addTime;					//属性添加时间
	private Date updateTime;				//属性修改时间

	// Constructors

	/** default constructor */
	public GoodsSkuAttr() {
	}

	/** minimal constructor Integer skuId, */
	public GoodsSkuAttr(String attributeName,
			String attributeValue, Date addTime) {
//		this.skuId = skuId;
		this.attributeName = attributeName;
		this.attributeValue = attributeValue;
		this.addTime = addTime;
	}

	/** full constructor Integer skuId, */
	public GoodsSkuAttr(String attributeName,
			String attributeValue, Date addTime, Date updateTime) {
//		this.skuId = skuId;
		this.attributeName = attributeName;
		this.attributeValue = attributeValue;
		this.addTime = addTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

//	@Column(name = "sku_id", nullable = false)
//	public Integer getSkuId() {
//		return this.skuId;
//	}
//
//	public void setSkuId(Integer skuId) {
//		this.skuId = skuId;
//	}

	@Column(name = "attribute_name", nullable = false)
	public String getAttributeName() {
		return this.attributeName;
	}

	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}

	@Column(name = "attribute_value", nullable = false)
	public String getAttributeValue() {
		return this.attributeValue;
	}

	public void setAttributeValue(String attributeValue) {
		this.attributeValue = attributeValue;
	}

	@Column(name = "add_time", nullable = false, length = 19)
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}